package com.example.shixun.dao;

import com.example.shixun.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserDao {
    public User login(User user);
    public Integer save(User user);
    public Integer updatePwd(User user);
    public Integer findEmail(String email);
    public List<User> findStudent(User user);
    public User findById(Integer id);
    public Integer updateUser(User user);
    public Integer setStatus_1(Integer id);
    public Integer setStatus_0(Integer id);
    public Integer setTeacher(Integer id);
    public Integer setStudent(Integer id);
}
